<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta charset="UTF-8">
		<title>总资产_共富网_Gofull.com.cn</title>
		<script src="/v3/js/jquery-1.10.2.min.js" type="text/javascript"></script>		
		<link type="text/css" rel="stylesheet" href="/v3/css/wstyle.css">
		<link type="text/css" rel="stylesheet" href="/v3/css/account.css">
	</head>
	<style>
	#footer{margin-top:0px;}
	</style>
	<body>
		<div id="wrap">
			<div class="assItem">
				<a href="javascript:;">余额宝</a>
				<a href="javascript:;">月利宝</a>
				<a href="javascript:;">季发宝</a>
				<a href="javascript:;">稳盈宝</a>
			</div>
			<div class="assetsBox" id="allAssets">
				<div class="myAssets">
					<p>账户总资产/元</p>
					<p class="org"><fmt:formatNumber
								value="${accmountStatisMap.accountSum + accmountStatisMap.forPaySum}"
								pattern="#,##0.00#"></fmt:formatNumber></p>
					<a href="/wchatFundRecord.do">查看资金流水</a>
				</div>
				<div class="assetsItem">
					<div class="assetsLeft">
						<div class="totalCorpus">
							<p><i class="icon-Corpus"></i>自有本金/元</p>
							<span><fmt:formatNumber
								value="${accmountStatisMap.accountSum + accmountStatisMap.yebForPayPrincipal 
								 + accmountStatisMap.ylbForPayPrincipal + accmountStatisMap.jfbForPayPrincipal
								 + accmountStatisMap.wybForPayPrincipal}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
						<div class="totalVoucher">
							<p><i class="icon-Profit"></i>待收收益/元</p>
							<span class="org"><fmt:formatNumber
								value="${accmountStatisMap.yebForPayInterest + accmountStatisMap.ylbForPayInterest
								+ accmountStatisMap.jfbForPayInterest + accmountStatisMap.wybForPayInterest}" pattern="#,##0.00#" /></span>
						</div>
					</div>
					<div class="totalProfit">
						<div class="my-Voucher">
							<s:if test="#request.availableVoucherCounts.num>0">
							<i class="icon-Voucher"></i>
							</s:if>
							<s:else>
							<i class="icon-VoucherNo"></i>
							</s:else>
							<p>投资券</p>
							<span><fmt:formatNumber
									value="${availableVoucherCounts.num}"
									pattern="#,###"></fmt:formatNumber></span>
						</div>
					</div>
				</div>
			</div>
			<ul class="assetsTab">
			<li>
			<div class="assetsBox" id="yebDiv">
				<div class="myAssets">
					<p>账户总资产/元</p>
					<p class="org"><fmt:formatNumber
								value="${accmountStatisMap.yebForPaySum}"
								pattern="#,##0.00#"></fmt:formatNumber></p>
					<a href="/wchatFundRecord.do">查看资金流水</a>
				</div>
				<div class="assetsItem">
					<div class="assetsLeft">
						<div class="totalCorpus">
							<p><i class="icon-Corpus"></i>自有本金/元</p>
							<span><fmt:formatNumber
								value="${accmountStatisMap.yebForPayPrincipal}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
						<div class="totalVoucher">
							<p><i class="icon-Profit"></i>待收收益/元</p>
							<span class="org"><fmt:formatNumber
								value="${accmountStatisMap.yebForPayInterest}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
					</div>
					<div class="totalProfit">
						<div class="my-Voucher">
							<i class="icon-VoucherNo"></i>
							<p>投资券</p>
							<span>0</span>
						</div>
					</div>
				</div>
			</div>
			</li>
			<li>
			<div class="assetsBox" id="ylbDiv">
				<div class="myAssets">
					<p>账户总资产/元</p>
					<p class="org"><fmt:formatNumber
								value="${accmountStatisMap.ylbForPaySum}"
								pattern="#,##0.00#"></fmt:formatNumber></p>
					<a href="/wchatFundRecord.do">查看资金流水</a>
				</div>
				<div class="assetsItem">
					<div class="assetsLeft">
						<div class="totalCorpus">
							<p><i class="icon-Corpus"></i>自有本金/元</p>
							<span><fmt:formatNumber
								value="${accmountStatisMap.ylbForPayPrincipal}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
						<div class="totalVoucher">
							<p><i class="icon-Profit"></i>待收收益/元</p>
							<span class="org"><fmt:formatNumber
								value="${accmountStatisMap.ylbForPayInterest}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
					</div>
					<div class="totalProfit">
						<div class="my-Voucher">
							<s:if test="#request.availableVoucherCounts.num>0">
							<i class="icon-Voucher"></i>
							</s:if>
							<s:else>
							<i class="icon-VoucherNo"></i>
							</s:else>
							<p>投资券</p>
							<span><fmt:formatNumber
									value="${availableVoucherCounts.num}"
									pattern="#,###"></fmt:formatNumber></span>
						</div>
					</div>
				</div>
			</div>
			</li>
			<li>
			<div class="assetsBox" id="jfbDiv">
				<div class="myAssets">
					<p>账户总资产/元</p>
					<p class="org"><fmt:formatNumber
								value="${accmountStatisMap.jfbForPaySum}"
								pattern="#,##0.00#"></fmt:formatNumber></p>
					<a href="/wchatFundRecord.do">查看资金流水</a>
				</div>
				<div class="assetsItem">
					<div class="assetsLeft">
						<div class="totalCorpus">
							<p><i class="icon-Corpus"></i>自有本金/元</p>
							<span><fmt:formatNumber
								value="${accmountStatisMap.jfbForPayPrincipal}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
						<div class="totalVoucher">
							<p><i class="icon-Profit"></i>待收收益/元</p>
							<span class="org"><fmt:formatNumber
								value="${accmountStatisMap.jfbForPayInterest}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
					</div>
					<div class="totalProfit">
						<div class="my-Voucher">
							<s:if test="#request.availableVoucherCounts.num>0">
							<i class="icon-Voucher"></i>
							</s:if>
							<s:else>
							<i class="icon-VoucherNo"></i>
							</s:else>
							<p>投资券</p>
							<span><fmt:formatNumber
									value="${availableVoucherCounts.num}"
									pattern="#,###"></fmt:formatNumber></span>
						</div>
					</div>
				</div>
			</div>
			</li>
			<li>
			<div class="assetsBox" id="wybDiv">
				<div class="myAssets">
					<p>账户总资产/元</p>
					<p class="org"><fmt:formatNumber
								value="${accmountStatisMap.wybForPaySum}"
								pattern="#,##0.00#"></fmt:formatNumber></p>
					<a href="/wchatFundRecord.do">查看资金流水</a>
				</div>
				<div class="assetsItem">
					<div class="assetsLeft">
						<div class="totalCorpus">
							<p><i class="icon-Corpus"></i>自有本金/元</p>
							<span><fmt:formatNumber
								value="${accmountStatisMap.wybForPayPrincipal}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
						<div class="totalVoucher">
							<p><i class="icon-Profit"></i>待收收益/元</p>
							<span class="org"><fmt:formatNumber
								value="${accmountStatisMap.wybForPayInterest}"
								pattern="#,##0.00#"></fmt:formatNumber></span>
						</div>
					</div>
					<div class="totalProfit">
						<div class="my-Voucher">
							<s:if test="#request.availableVoucherCounts.num>0">
							<i class="icon-Voucher"></i>
							</s:if>
							<s:else>
							<i class="icon-VoucherNo"></i>
							</s:else>
							<p>投资券</p>
							<span><fmt:formatNumber
									value="${availableVoucherCounts.num}"
									pattern="#,###"></fmt:formatNumber></span>
						</div>
					</div>
				</div>
			</div>
			</li>
			</ul>
		</div>
		<jsp:include page="/include/v3/footer.jsp"></jsp:include>
	</body>
	<script>
$(function(){
		var a = $(".assItem").height();
		var b = $(".myAssets").height();
		var mH = $(window).height();
		$(".assetsItem").height(mH-(a+b)-60);
		$(window).resize(function() {
			myWindowResize();
		})
		function myWindowResize() {
			var a = $(".assItem").height();
			var b = $(".myAssets").height();
			var mH = $(window).height();
			$(".assetsItem").height(mH-(a+b)-60);
		}
	$(".assItem a").click(function(){
		$("#allAssets").hide();
		$(this).addClass('on').siblings().removeClass('on');
		var index = $(this).index();
		number = index;
		$('.assetsTab li').hide();
		$('.assetsTab li:eq('+index+')').show();
	});
});
</script>
</html>
